﻿<phone:PhoneApplicationPage 
    x:Class="RubricaSentimentale.View.AggiungiPersona"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    mc:Ignorable="d" d:DesignHeight="696" d:DesignWidth="480"
    shell:SystemTray.IsVisible="True">

    <!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot" Background="Transparent">
        <Grid.RowDefinitions>
            <RowDefinition Height="67"/>
            <RowDefinition Height="701"/>
        </Grid.RowDefinitions>

        <!--TitlePanel contains the name of the application and page title-->
        <StackPanel x:Name="TitlePanel" Grid.Row="0" d:LayoutOverrides="VerticalAlignment">
        	<TextBlock TextWrapping="Wrap" Text="Aggiungi Persona" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="48" FontFamily="Comi" Name="tbxTitle" />
        </StackPanel>
        <Image x:Name="imgPersona" HorizontalAlignment="Left" Height="200" Margin="8,18,0,0" Grid.Row="1" VerticalAlignment="Top" Width="200" Source="{Binding Image,Mode=TwoWay}"/>
        <Button Content="Seleziona Immagine" Height="80" Margin="208,84,45,0" Grid.Row="1" VerticalAlignment="Top" FontSize="18.667" FontFamily="Comic Sans MS" Name="btnImage" Tap="BtnImage_Tap" />
        <TextBox x:Name="tbxNome" Margin="0,271,0,0" Grid.Row="1" TextWrapping="Wrap" Text="{Binding Nome,Mode=TwoWay}" VerticalAlignment="Top"/>
        <TextBox x:Name="tbxCognome" Margin="0,0,0,242" Grid.Row="1" TextWrapping="Wrap" Text="{Binding Cognome,Mode=TwoWay}" VerticalAlignment="Bottom"/>
        <TextBlock HorizontalAlignment="Left" Height="31" Margin="8,249,0,0" Grid.Row="1" TextWrapping="Wrap" VerticalAlignment="Top" Width="149"><Run Text="Nome"/><Run Text=":"/></TextBlock>
        <TextBlock HorizontalAlignment="Left" Height="31" Margin="8,0,0,305" Grid.Row="1" TextWrapping="Wrap" VerticalAlignment="Bottom" Width="149" Text="Cognome:"/>
        <Button Content="Modifica Preferenze" Height="108" Margin="99,0,96,104" Grid.Row="1" VerticalAlignment="Bottom" FontSize="24" Click="Button_Click" />

        <!--ContentPanel - place additional content here-->
    </Grid>
 
    <!--Sample code showing usage of ApplicationBar-->
    <phone:PhoneApplicationPage.ApplicationBar>
        <shell:ApplicationBar IsVisible="True" IsMenuEnabled="False">
            <shell:ApplicationBarIconButton x:Name="btnSave" IconUri="/icons/appbar.save.rest.png" Text="Salva" IsEnabled="True" Click="BtnSave_Tap"/>
            <shell:ApplicationBarIconButton x:Name="btnadd" IconUri="/icons/appbar.new.rest.png" Text="Preferenze" Click="btnadd_Click"/>
        </shell:ApplicationBar>
    </phone:PhoneApplicationPage.ApplicationBar>

</phone:PhoneApplicationPage>
